Add AFM._check_target_deflection to avoid approaching forever.