catch all exceptions (e.g. file not found)