Added safe exit (on Ctrl+C) (SIGINT handlers)