Capture sharedThis by copy explicitly.