Better error handling
Verifies config write