throw and handle exception (but exists BUG 'SaveAS' must handle result of AutoWrap) and add maze_sample