CCBC-456: Replace 'abort' with more 'robust' equivalent

Stuff might still crash, but hey, we tried.

Change-Id: I9c4f4a01cc81a1964a311d9924ea83af2b11cf63
Reviewed-on: http://review.couchbase.org/38817
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>