Catch EOFException in JMessenger.