Add basic condition handling and signaling
Define ERROR and WARN