If it gets stuck at the entrance of a cave, pick it up and take it out with a kapro.

More Megalania Taming & KO Tips