fix waiting for aquire session_id and properly kill session if cannot start