It came so close. It even took a selfie. But with only a few kilometres left to descend, something went wrong and the spacecraft Beresheet veered out of control, taking one final photograph just before it hit the surface. It is thought that there was a fault, possibly in the inertial system, possibly an engine failure, that led to the crash.