fixed #547 - emit error event when step and complete callbacks fail