Fixed automated test exit code.
Fixed devtools exception on process exit.

Signed-off-by: marco.minetti <marco.minetti@novetica.org>