Changed the way of handling error messages for maintenance events.

**WIP**