FIX: Better error handling

Addresses recent comment on mne-analysis listserv.