allow calling quit() from subclasses