Windows installation bug and better error handling