add UNIX signal handler