Modernise Exceptional access library

Modernise Exceptional access library and add feature to save reports that were not sent because of socket connection issue.