Added component annotation.
Writing to client and closing channel should be done synchronously.