added connection close before fork in Manager; moved transaction from Manager to Runner; refactored Runner