The jailer woke up and saw that the jail doors were open. He thought that the prisoners had already escaped, so he got his sword and was ready to kill himself.