nagios_exit: simplify the logic

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>