The error message is telling you exactly what's wrong--you're trying to write to a socket that is closed. There's nothing more anybody can tell you from just that stacktrace.
You best bet would be to produce an
SSCCE that duplicates the problem and post it here, so that people can see what you're doing wrong in your code.
Also, using words like "ASAP" or "urgent" will discourage people from helping you. Please refrain from doing so in future posts. In other words,
EaseUp.(⇐link)