Implement close tab command