added exceptions to the rmi service