Error() would call Close() getting stuck in a double mutex lock that could stall workers. This commit fixes that.