Adding InvalidContactException and handling to midtier