Attempt to fix APT hang during startup due to bad event handling