Application now gracefully finishes.