do always call thread cleanup handler