null check on thread during river close