Better handling of deleted machiens.
Fixed some VM bugs.