Make sure histogram plots dispose their frames