How to close get imap connection manually?

Hi
Sometime imap opens the connection like so “UiPath.executor.exe - imap.mail.yahoo.com:993 open” but doesn’t close it automatically even when i am outside the scoop of the get imap activity in my workflow…

How to force close it manually with a line of code using invoke code or invoke powershell activity without stopping the automation ?

thank you

Leona

Hi,
Maybe after the email activity you can add an action to close or kill it
regards,