Handling case where server should not close on ctrl c of client