Disable redirect listener once we're handling an exception