Properly close inventory on cropnalyzer or toolbox drop

Causes some visual glitches but currently we can ignore this