Update Communicator.java

Changed some exception handling