Exiting the phantom process if an error occurs during render