CLOUDIFY-1595 remove deallocation from from inside the catch. it will be called from the outside