close jmx port in taskComplete rather than close

the jmx port being open can prevent close from being called by
the shutdown hook because the jmx threads are not all daemons.