clean cmp handle before checking lib
 unload