Cleaning up signal handlers.