Cleanup the drop function