#71 close should happen AFTER js action