node.py: adding graceful exit in case port not found