Add ability to save/restore machine state to disk