added fatal error handling
refactored the logging starting page
now i stop the fileprovider after reading a file