Removed panic and just do defer in.Close()