A simple way of handling application crashing and normal termination the exact same way.