#28 Check before write if open

write messages still being passed through after close has been called.