Force exit after 3 attemps in server