script to safe-kill mongod instance