Reinstated the SIGINT/SIGTERM handler