Detect and abort if an object is deleted during signal handling