I think u have to listen until she is at the door and either just shut it and hope u dont run out of power or try to time when she attacks(or average if its more random)and then close door
and by at the door i mean by she is at the place before she would enter office