Added error handling for out of space during downloads