Plat 592 writable sources

Because the wakeup is used both to notify that messages are available for writing and that the source can be closed. Therefore, when processing a wakeup event, closing is prevented until remainingMsgs has reached 0.