Fixed an issue where a new polling thread was started on every mail processed