catching write_closed_exc_t in protob server write