Added intermediate state flag
Wait until full show only when close
Merge pull request #150 from lynx1983/master

call close before show is complete issue