Created seperate private methods to close I/O