Fixed exception handling
Improved logging and exception handling
New test for persistence of the basic estimator