add port check before attempting launch.  delete log file when killing