Manually catch SIGINT and SIGTERM signals and close gracefully. Fixes #51

I tested on my mac and it worked perfectly when I killed peco with the kill or killall command. Feel free to shift the code around if needed. I wasn't sure of the best place to put my additions. Also, I have no way of checking if this works on windows, so I would appreciate someone else testing it.