adds context to the destroy method

Change-Id: I7a1c7fbf7cdfc4fe400bafe2ef89c4c4588cdceb