Fix regexp test.
Fix the DELETE test.
Implement close.
Remove the need for @api, @key etc.
Added the logCapturedPathsMaybe function.
Add the code to unhandled errors.
Start of cache work.