trying shutdown from a different thread