Used on error to listen for errors