Make sure input and output streams are closed so we don't get strict mode errors