updated errorhandling to work properly and output useful messages
fixed bug with the 'finish' method for an event blocking when the handler errors.