Fixed shutdown thread

Before, it read "" and started a shutdown immediately (though it didn't
actually do anything). Now, it waits for a non-empty value and then
actually shuts down.

This means you can now shut down the VM with "xl shutdown".