closing Read&Write

Closing the program