Fix high CPU usage problem when camera doesn't get cleaned up