NetworkClient: Implemented timeout for async_write