signal handling for ^C complete