Format code.
Fix reconnection issue.

Join in reader blocked any activity until socket read timeout.