Bail if there's an error on sam_open