Fix some error conditions in vbox provider.