fix retcode in the jboss daemon