provide an error if client is not connected within one second

and improvement for #6 that also fixes playername scoping mistake