public function retry($times, callable $fn) {

		retrybeginning:
	    try {
	        return $fn();
	    } catch (\Exception $e) {
	        if (!$times) {
	            throw new \Exception('', 0, $e);
	        }
	        $times--;
	        goto retrybeginning;
	    }
	}