[BW]: [Fix] Mail connection cannot be established after identity creation.
[BW]: [Fix] mail_connect_loop also should check quit_promise status to stop when application close has been requested.