Revert
Check state in open, close, read and write(remove gilgil temp 2014.03.24)