Close Scanner. connect token !=3. IllegalArgumentException

Otherwise more than 2 arguments could be hand over to connect.
IllegalArgumentException (for example port 5000000