Fixed potential issues to release resources when error occurs.
drwxr-xr-x - docs
drwxr-xr-x - edk2
drwxr-xr-x - www