Reversed argument order of acceptLoop
Fixed Client spec tests
Handle accept errors, and close client handle on connection close