Added expression to get last error ( using the ErrorManager ).
Todo : Sockets are not closed properly ( in particularly when being the server and when switching back to edition mode in editor. )
git-svn-id: svn://localhost@287 8062f311-0dae-4547-b526-b8ab9ac864a5