Added auto close with delay