improved sdk ubuntu and added exit_on_error