Close buffer on q