Fixed 2 bugs that were caused when there was no response from the server.
Also I set a time limit of 10 seconds, after the time limit there is a time out.