be about to go out
He came over just as I was about to leave.
The phone rang just as I was about to leave for work.
Just as I was about to leave for work, the phone rang.
Just as I was about to go out, it started to rain.
The phone rang just as I was about to leave.
Just as I was about to leave, the phone rang.
She arrived just as I was about to leave.