close writer before putting to outbox
fix writer address field bugs