Use the new ShutdownHook class to clean the RabbbitMq Factory