Improved performance while running in background by releasing objects