Improve quit command for file and buffer which is not related to file