fix tab close behavior, close #24
Merge remote-tracking branch 'origin/master'