Add close method.
Fix jasmine not exiting because of mongodb connection.