When you’re finished, please lock the door.

A. adverbial clause***
B. adjective phrase
C. infinitive phrase
D. appositive phrase

C. infinitive phrase