Adding forced socket reconnection