fix #3 handle orient shutdown