fix 'double position closure' bug that happens if next tick arrives before checkIfClosed() has finished executing #kornwolf
close