handle error in application install script