Not able to create a new remote session. always shows port already be in use

Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.

Later, when tried to update session, I found this message

It’s probably a previous Appium server that was not closed at the end of the last test run. Here are some instructions on how to kill a process in Windows cmd line: