Return error from the listener