Added missing destroyContext