Use blocking close in servlet