Update .gitignore with bin/ directory for eclipse.
Fix exceptions that appear when a client disconnects.