Clean out DatabaseWriter writeArray except when shutting down.