Fixed dialog issue -- Application quit now works more like it should.