terminate process for port listening