Add a timeout to NioPeerHandler.connect