Implemented SIGTERM for a better program termination