In case of /sbin/reboot ssh action, catch the return code and override it instead of sending an error to the client
/sbin/reboot