My earlier comment seems to have been lost :/

Can you s/handleMesosSetup/restartMesos/

Also, why is this "synchronized"? A comment would be nice.