Check bufnr and bufname before closing

Refs #335
Reset 'cscopetag' temporarily while using `:tag`

Refs #235
Run :tag as if typed

Refs #339