Update machine.rb

Fixed it so it will perform after launch tasks.