ज्योंही वे अंदर घुसे कि दरवाजा बंद हो गया।
As soon as they entered, the door was shut behind them.