Make sure input and output streams are closed so we don't get strict mod...

StrictMode is complaining about the output and input stream not being closed.  This should fix that.