Code to free the port

Appium monitor code..