Register and unregister signal handlers from within the perform method.