Or you can use the PrevInstance property of the App.
Code:
If App.PrevInstance = True Then Unload Me