closing connection on mongo