Add some extra logic to make sure rabbitmq is shut down before cookie overwrite. Solves cookie-overwrite-restart issues with Chef 11.10.4, but not 11.12.2.