Handle error in ar extraction.

Currently an error in ar extraction is ignored. Now a unsuccessful call delegates the stdout and stderr and throws an exception, so possible error debugging should be easier.