Added shutdown functionalty to client
Configured java version with maven default