Removed while(true) check in Connection.cs | removed else blocks to make code readable