Close tab on mouse release rather than on mouse press
Differential Revision: https://phabricator.kde.org/D4501