Added IOError exception for File namespace.