remove the uncaught listener when we are finished