Do not use boost exception. Not supported on hardy.