Doesn't crash when closes