close method in bounded inputstream