.done(): fix error throwing, fixes #6