fix forced exit