added 2s timeout to staggerClose