Add cookie handling to destroy method