Better handling of deployment errors

Signed-off-by: Nicolas <nicolas@cipango.org>
Add event dispatcher

Signed-off-by: Nicolas <nicolas@cipango.org>