Make sure we keep the thread alive, whatever happens