prettier code, handle socket timeout