Removed while loop in connectionhandler for now.