Remove the pipe's event handler when an error of the pipe happens.