added SIGINT handler, disabled by --nosignals