Ensure the BufferManager is destroyed first so that buffer hooks can access other managers
Ensure the BufferManager is destroyed first so that buffer hooks can access other managers

Fixes #612

lenormf/kakoune,danr/kakoune,casimir/kakoune,casimir/kakoune,jjthrash/kakoune,mawww/kakoune,jkonecny12/kakoune,lenormf/kakoune,casimir/kakoune,jjthrash/kakoune,lenormf/kakoune,mawww/kakoune,Somasis/kakoune,occivink/kakoune,occivink/kakoune,mawww/kakoune,flavius/kakoune,occivink/kakoune,ekie/kakoune,Somasis/kakoune,Somasis/kakoune,jjthrash/kakoune,jkonecny12/kakoune,flavius/kakoune,jkonecny12/kakoune,ekie/kakoune,occivink/kakoune,mawww/kakoune,alexherbo2/kakoune,danr/kakoune,alexherbo2/kakoune,flavius/kakoune,alexherbo2/kakoune,ekie/kakoune,jjthrash/kakoune,Somasis/kakoune,flavius/kakoune,lenormf/kakoune,ekie/kakoune,jkonecny12/kakoune,alexherbo2/kakoune,casimir/kakoune,danr/kakoune,danr/kakoune