Topics/error handling

Will fix easybib/issues#705