Dispose of previously running servers before creating new

How do I dispose of the current running servers before I start a new server?
Having this problem because my application never triggers the Application_End function.