The Kepler space telescope will run out of fuel and end its mission within several months, NASA said. The spacecraft, which has survived through several close calls, has detected 2,245 exoplanets and will continue collecting data until it shuts down.