I had a similar mishap. Realized too late that my lander was careening towards the side of a mountain, and slowed down just enough for the command pod to survive. Luckily I had a space station orbiting above my position. I fueled up my Kermans' packs, intercepted my space station one by one, and returned to Kerbin.