Exception handling added to FileBlock