For this question, this new feature might help you
Check the section called "Cancel Pending Actions when Required Expression Becomes False"
You would need to set a required expression that the door is open, so when it closes everything gets canceled.