Web cache: Separate logging + fix del operator + improve exception handling for corner cases