Fix logging of stats collected by MemoryDebugger extension.

Stats are printed on `spider_closed` event; `engine_stopped` signal is called after spider is closed, so stats for `MemoryDebugger` extension were not printed to user.