Dont render stuff when app is quitting (lib)