call close before show is complete issue