speedup application shutdown