Removed wiser restart logic as it won't reset port on JavaMailSender.