Emitting express event for error handling