workaround for hiredis double-close bug