Fixed Exceptions. Various Additions.

Fixed EventExceptions & Thread issues.
Added a command to clean Up Code.
Automatic CleanUps every 5 Minutes.