Add missing-source and missing-sink Errors in XHandler. Print stack trace before additional message.