fix for serveradmin, exit with error code on error
more debugging