Update Windows dll build. Add exception handling.