scripts: add error handler for server port in use

Change-Id: Id665f38d80ff618102e944170b67f216da90ef3e
Signed-off-by: Wayne Lee <waynelee@qce.qualcomm.com>