fix exit being inherited. #14