static.go: Check for error after call to os.Open