Changed indent level to 4 (using spaces). Added sigint handler, so logging file can be properly closed. Add try/except for server socket.