Removed the unused and buggy event scheduler
Turned some threads into deamon threads