Handle SIGINT and others more properly