Fix Application singleton pointer lifetime