Exit after port close