logging error in destroy
using util.error and util.debug