Fixed a bug in control, add failurehelper and connect the accepted failure with mongodb