Kill thread if over max thread limit