Matching client doesn't work with the error 'Cannot write to a closed TextWriter'.
This happens if pagefile.sys of the server is full. Server reboot in this case can help.
You can check more about page file here.
Also in some cases we can consider to increase the RAM so that page file is not required at all.