Exit process on SIGINT and SIGTERM signals

Process should be stopped when hitting Ctrl+C. There is the fix.