Handling Exceptions

error handling loading files