Exception handling in filesystem