close port on exit