[KARAF-3346] Fix JMX exception at shutdown