[Release version 0.2.53] Update code for exception handling and fix error type in...