add unref redis, allowing program exit normally