quit from callback