Add needClose to be able to close modal after current animation. Fix #169