Free block cache and filter policy on close.