No need to unref frame on errors (wasn't ref'd before).