add mongodb.close() to avoid multiple calls

db object already connecting, open cannot be called multiple times