exit when rmi is not working