Improved MageTab error handling