Im using a gmail class so that my app can send me notification over gmail.
Its done like this:
public static void SendMessage(string message) { N
The thread will go out of scope and be available for garbage collection as soon as SendFromGmail finishes.
SendFromGmail
So yes, it closes automatically.