The correct answer is
A. was just leaving
Predicate must contain a VERB. In this case we have two verbs WAS (to be) and LEAVING (base of the verb to leave +ing ) Two of them form the Past continuous tense.
B.C.D. don’t have verbs in their structure.