comment and cleanup the main thread.