stop mongodb running in background code example Example: exit mongodb // In db shell use adim db.shutdownServer()