Cleanup application a bit.