1. how can i terminate my application and create a new instance of it?

2. how to determine if my application is already running? to prevent user to run two applications at the same time?

thanks..