Add support for agent throwing IOException and add warn logging for FileNotFoundException