Added closing connection in Server, implementing GH-20.