return this from exit - fixes #245
allow custom class on buttons
Merge branch 'issue-245'

* issue-245:
  return this from exit - fixes #245