improve error handling when sql calling with (empty|unknown) host.
see #191
Merge pull request #203 from hamano/added_get_random_pid_error_handling

improve error handling when sql calling with (empty|unknown) host.