add signal handler for Ctrl+c