better migration error handling.