Add signal handler function if user wants to exit before file ends
Merge pull request #1 from akseli0x61/master

Add signal handler function if user wants to exit before file ends