Connecting to GSM/GPRS unstable, eventually hangs

With the default library, the gsmAcces.begin() can hang on AT%13%, which means the modem isn't answering. If you add this timeout, if the modem hasn't successfully connected to the GSM network in 30s it tries again.