Close any existing stratum socket if we are attempting to restart stratum so the pool knows the connection has gone.