Add option to allow quitting when closing the last buffer