change to set RDP port. fix exception handling.