Handle process Exit