Correctly halt the start sequence on APIError exceptions

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>