fix exit exception.