Are the verbs used coorectly in the following dialog?

A:Нужно закыть дверь.
B: (Silence)
A: Нужно закыть.
B: (Silence(.
A: Закрывать!