[FIX] stop related crons when closing a database