Try to use bash failure to exit in case of an error.