I couldn't find a way to avoid this, even worse I can't reproduce it with a test, only with solitude's tests (see https://github.com/mozilla/solitude/pull/159 )