Fix JMX agent so shuts down connector

Based on observations made in reviewing https://github.com/brooklyncentral/brooklyn/pull/1168, but that were unrelated to that pull request.