refs #4996 make sure redirect works even if mysql is down or any other error occurs