Return proper exit status upon image deployment