Clear queue object by setting reference to NULL.