Patched client event loop

Uses non-blocking mode (for the first time only).