Turn around and kick a tree with your heel and the squirrel will then stay still in there, even if it would have been jumping around a lot earlier.