Better error handling around slot show/hide