Fixed a bug in migrator-manager, where if it can not connect to mysql server, would cause program to terminate. Fixes #413