Cleaned up rkhunter/csi log subs and corrected bug where CSI log was closed during the foreach instead of before.