Fix crash at exit.

JsonStorage was accessing Kernel's methods after they were deleted.