Might want to call whatever the Ruby version of `GetLastError` is here for more diagnostic info.