Some further enhancements to the error handling of getMsg