clean up the port file