Also clean up the share if cleaning up fails
Fix indention
add license file
Fix extracting workgroup from user