Analysis and Control of Pre-extinction Dynamics in Stochastic Populations