Added https option, sanity checks to prevent wrong kills and double starting