Added check for settings.txt and crash-handling on new connections.