Improved the error handling of the background render process. Cancelation still doesn't work.