With this patch we now patch the write functions during shutdown in a debug build and abort if a non white listed write is found.