Implement support for ApiListener::bind_host

fixes #6998
Use const-ref specifier when catching exceptions

refs #6070