Update MinerFactory.php

Add getLastMinerObject for catching errors