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