gophersvids: error checking and cleanup