There is no action assigned on middle mouse button right now and this patch adds an option to Settings->Configure->Taskbar which enables closing a tab like in browsers/different editors using wheel click. Currently disabled by default.
Tested manually
View Diff