Hold the closed mutex in the "connect()" method. Signed-off-by: Eric Callahan <arksine.code@gmail.com>