#5 Better error handling around slot definitions

Resolves #5