Teacher tells judge he intends to immediately return ‘for work’ at Wilson’s Hospital School upon release