Errorhandling for broken torrents and magnet links

Fix issue #75.