Phone not blocked if overtime when running app

Kid is playing with app on smartphone. Timeblock is until 19:30. Receive mail (19:32) that time is passed and kids phone is blocked, however (19:45) kid is still playing with app. Only after closing the app, the Phone is blocked. Bug?