Fixed auto disconnect and added timeout message