Update mailer to prevent deadlock. Reversed setters on pool size, it
seems core size needs to be set first. Also setting current context to
null before save in the mail sender runnable as it seems to complain
otherwise.