Update exit handling for rhel5 platforms