reformated
use ResponseHandler interface
make sure IOExceptions are not swallowed