One thing you can do: turn the door handle so that it shows up. THen they can't open it any more by jumping on it.

I am glad sneaky Lily didn't manage to go outside. One time Filou was outside about 45 minutes -because we were sure he was only hiding in the apartment