def hibernate! path=nil
            @hibernation = true
            File.open(path||@hibernate_path,'w') do |f| f << JSON.pretty_generate(self) end
        end
def hibernate! path=nil
            @hibernation = true
            File.open(path||@hibernate_path,'w') do |f| f << JSON.pretty_generate(self) end
        end
sends the system into hibernation

 @param [String] path the path to the hibernation file

 the system is serialized into JSON data and flushed to disk