1. Remove the code for setting remote_debugging-port because this switch can be handled by framework
2. Remove the event kernal object for wait task. Wait process handle instead