Web Application closes automatically without finishing entire test

i have written few commands to interact with web application, but after launching the url it closes the session and for next command i am getting No Such Session Exception( org.openqa.selenium.remote.SessionNotFoundException)

i haven’t used any closing command like , driver.close or driver.quit , i am not sure why it is happening

Any help would be appriciated.