add QUIT signal handler