Use shutdownGracefully() wherever possible / Deprecation javadoc