Tyler was approaching Tatooine in a pilot-only craft he had stolen from the Imps, when the engines failed. His vessel crashed into the ground but thanks to a bit of luck, the cockpit was barely damaged.
The engines shouldn't have just cut out like that...
He attempted to get out of the ship, but found that the hatch was stuck closed. He tried everything he knew technically to get it open, and then physically, but to no avail. He was trapped, unfortunately.