Cleaned up the checks for being in a megatest area, ensure all exit correctly