achieve softunload function

achieve softunload function