Completed the border, made message log better, included wrapper to cleanly exit on error.