As above, if the media was still wet and not dried out you should be ok. You will have lost some but not all and should re colonize fairly quickly, just keep a check on params to make sure
When I do water changes on my tank it can take me up to half an hour and I usually turn off the filters and I've never had any problems yet. Usually at half an hour they are still pretty moist though.