Fix error reporting and re-enable buttons on error.