added model for failures
+Naval - added code to capture errors while processing a facility