call close before show is complete issue

Added intermediate state flag "showing". Set to true before showing animation begins and set to false after animation complete. If close event occurred in than period close animation will wait until open animation run.