Fix crash on exit when provider was not cleaned up properly
Fix composerhtml test