Fix memory leak on timeout in NioClient