Exit Failure Cleanup and Plugin Fix

Clean up of pointers on sudden exit
Prevent the same pluging from being loaded twice
Tweaked log output format