updated pom with java version; added error handling for client
disconnect (still needs work)