Initial message view code
IO streams are now properly disposed of