fix finalize redis context to not let open sockets