should use exit instead of kill