FIXES/CHANGES: Lots of fixes and changes

-Fixed array lock crash during failed delivery recovery
-Restructured a lot of error handling and the flow during email delivery
-Added emphasis to error messages
-Added more error handling to subs with SQL comms