Don't migrate when db is closed