Flush spool queue for console terminate as well
Cleanup use and unused parameter
bug #64 Flush spool queue for console terminate as well (BitOne)

This PR was merged into the master branch.

Discussion
----------

Flush spool queue for console terminate as well

Mail spool were only flush at the end of a HTTP Request (KernelEvents:TERMINATE). In case of a console command sending mail using a spool, the spool was not flushed, so no mail was sent (and in case of MemorySpool, the mail were lost).

So this PR subscribes to the ConsoleEvents:TERMINATE to do the same flushing as in the context of a HTTP request.

Commits
-------

4de0f63 Cleanup use and unused parameter
4b90392 Flush spool queue for console terminate as well
1c87809 Merge pull request #61 from ruian/patch-1
336d332 Remove redondant parameter