Fix to ensure a controller gets disposed if there is a redirect in the action