fix strange exit for good