Better fix for #624

Never issue an automatic :quit as with hidden buffers, this can
destroy the user's session. Instead use the QuitPre autocmd. Also,
silence the error when trying to autohide the loc list and it is the
last window.