Set forcemongomaster:true in your .cfg file to raise an exception if the box should be master