Main thread will now end