Move restart after extraction of WebAPI key