Added error event to module