Fix crash at CTRL_C
Merge pull request #26 from spetsnaz84/master

Fix crash at CTRL_C