Fix JSON string format and fix the Quit commands for the manager