Vagrant ssh session out

I have vagrant running with VirtualBox on windows
I’m spinning up bento/centos7 box
once vagrant is up and i ssh into that , it works fine for most of commands when they run succesful
if by any chance command fails , this is kicking me out of the ssh session, I need to re run vagrant ssh again to get into box
how to stop this? Any help is appreciated.