Safely stop threads, got rid of useless class, dummy class for offloading processes, thread loop timing control