catch port exceptions