remove restat application on onExit