got application close stuff working
got application close stuff working