Exit with the correct Nagios rror code

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