ServerHandler will now exit loop when it received the EOFException