Oops! Fixed resource leak at console  output stream.