Bug 1092393 - Pausing downloads on shutdown r=aus

Let's also add a test to make sure that this listener is called as expected and pauses the download.