Bug 901537 - In the fake mail server, correctly handle the socket being closed from outside when we're trying to write to it. r=jcranmer,a=bustage fix for CLOSED TREE