Added better handling of platform mbean server.