Due to the way phpunit runs, it can cause issues with shutdown functions

Prevent the prefs storage function to be called on shutdown - this
eliminates the "couldn't flush filter" errors