Single instance run; correct closing while poll