Client restarting after 2 seconds from entering on the server