Release mouse capture for disabled control

Made sure that mouse capture is released when a control is disabled.