Redirection handling will have to change once #3401 is merged. Controller::redirect() will no longer exit the script but will return a response instance with redirection headers set.