Added testcase for interrupting in the accept conn loop and fix a bug with cleaning up the client.