starting an autoClose api