added sig int handling to close client