This is called when a session fails. On failure the session will be paused.
StringResultHandler? onError;