FileSystem: exception handling. Fixed possible hang.