Tightened up exception handling.
Better error reporting.
Better exception handling.
Less error-prone.
Tighter exception handling.
Deleting logs when deleting a scan.
Removed truncate from sflib.
Changed truncation method.
Moved truncation here.