Wrap command error events