System Cleanup and Security Check