Correctly fail queued messages on close