xapi-project/xen-api — pull request #2020 by phusl (2014-11-19 11:36:32+00:00)
Title: CA-150395: [SCTX-1901]Some VDIs can't be unplugged in Primary Storage when executing many volume snapshot jobs from CCP

like SCTX-1892, but seems that we cannot catch Storage_interface.Sr_not_attached exception at storage_impl.ml
Here're a possible solution: use try-with statement to wrap xapi_vbd.unplug