allow the application to be closed by the terminal (Ctrl+C)