Exception and ports