release references to context