add exit to BSD