Add function to run system command and fail on error
Fix timeout loop and add function to return VM Status