fixed #5. Added closeConnection to TcpManagerProxy to distinguish it from detach.