Added exit after cache flush