Fix for "cannot create" ".last_repository.pos" file for first time.
Set timeout of 3 seconds for remote connection attempts.