Add signal handler

Hi, it's can be a good feature to terminate the ev_loop with SIGINT.