If you stop the container before the message broker is properly initialised, the container will not be able to shutdown correctly.