Made killing process with Ctrl + C more reliable.