Fix toString and add try, catch(err)