FELIX-2635 Apply patch by Victor Antonovich (slightly modified to explicitly assign null after destroyal and adding try-catch around the destroy calls)

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1002635 13f79535-47bb-0310-9956-ffa450edef68
1 file changed