单项选择题

This morning I ______ the washing when it started to rain, so I had to bring it all in again.

A.was just to hang out
B.was just hanging out
C.had just hanged out
D.have just hanged out