am d350dc04: Merge "API: Make close() throw an IOException." into gingerbread

* commit 'd350dc0492fab3614749955f5dcf21ec1c522b24':
  API: Make close() throw an IOException.