Fixed bug with exit code. Change logic of TableProvider realisation
class.