Fixed IO disposing issues