Set error mode to throw exceptions for magprocdb.
Updated error handling. Abstracted error dialog method.
Fixed typo. Corrected error handling. Removed debug logging.