Add global error handler, ask for .torrent association only on first usage, and improve XML serialization.