Catch TimeoutException in named pipe fails to connect