The new August Pro (the version with zwave) has a built in sensor called “door sense” which can tell whether the door is open or closed, not just whether the lock is locked or unlocked. It should be able to do what you’re asking for. However, this is a brand new device and some community members have been reporting that the door sense feature just doesn’t work very well. So it may take the Company a little while to get this feature working correctly.
You can simulate this with other locks by adding your own door sensor, not using the auto lock feature built into the lock, and instead having webcore determine when to lock the door while checking to make sure that the door sensor is closed first.
However, If you are pushing a lock feature on the keypad itself, I don’t think there’s any way for a smart app to override that, though. Pretty much all locks will assume that something physically done on the keypad takes priority rather than running it through the network first.