diff --git a/bootstraps/bootstrap-install b/bootstraps/bootstrap-install
index 16939006cab16cf08ca7e502079efee785daedef..d7fe259c252e46413f52f379a0ecd7a065cb9641 100644
--- a/bootstraps/bootstrap-install
+++ b/bootstraps/bootstrap-install
@@ -198,6 +198,11 @@ fi
 # Export a variable to inform the agent that this is its first execution
 export FIRST_EXECUTION=1
 
-su -c "bash SEED2/agent.sh" seed_mec
+# Run the agent and check if its execution was alright, exiting in case of error
+if ! su -c "bash ${AGENT_DIR}/agent.sh" seed_mec; then
+    printf "ERRO: Falha na execução do novo agente.\n"
+    collect_information
+    exit 6
+fi
 
 exit 0