Raymond van Barneveld kept his cool to decide his dramatic match against Jamie Caven with a bullseye finish.