It seems we have a timing issue here. We should not call to `setPreferredNetowrkType` immediately when starting up or we get an error with the name "GenericFailure". My test results show that we need a timeout around 7 seconds. We should not use timeout unless we have no proper ways to get notifications from gecko.