Fix for explicit host (moved error check into listen() callback)