Added logging and deregistering service

Next: terminate_node.py, port resolution, frontend